using System;
using System.Text.Json.Serialization;
using UwinEducation.Shared.Converters;

namespace UwinEducation.Shared.Models
{
    /// <summary>
    /// 教师假期分页请求
    /// </summary>
    public class TeacherVacationPageRequest : PageRequest
    {
        /// <summary>
        /// 教师ID
        /// </summary>
        public Guid? TeacherId { get; set; }

        /// <summary>
        /// 开始日期
        /// </summary>
        [JsonConverter(typeof(CustomDateTimeConverter))]
        public DateTime? StartDate { get; set; }

        /// <summary>
        /// 结束日期
        /// </summary>
        [JsonConverter(typeof(CustomDateTimeConverter))]
        public DateTime? EndDate { get; set; }

        /// <summary>
        /// 请假原因
        /// </summary>
        public string? Reason { get; set; }

        /// <summary>
        /// 搜索关键词（原因或备注）
        /// </summary>
        public string? SearchTerm { get; set; }
    }
} 